#ifndef __WINDOW_MESSAGE__
#define __WINDOW_MESSAGE__

#include "LearnBase.h"

namespace Learn
{
    class WindowMessage : public Learn::LearnBase
    {
    public:
        virtual int LearnEntry(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
        static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

    private:
        void SetWndClass(HINSTANCE hInstance);
        void SetWindow(HINSTANCE hInstance);

        const TCHAR*    _szAppName = TEXT("HelloWindow");
        HWND            _hwnd;
        MSG             _msg;
        WNDCLASS        _wndclass;
    };
}

#endif //__WINDOW_MESSAGE__


